@extends('admin.master')

@section('top')
<div class="top-breadcrumb pull-left">{!! Breadcrumbs::render('department-edit') !!}</div>
@endsection

@section('content')
	{!! Form::model($data, ['route' => ['admin.department.update', $data->id], 'method'=>'put', 'class'=>'form-horizontal']) !!}
		<table class="table table-form">
			<tbody>
				<tr>
					<th width="100"><span class="control-label"><span class="text-danger require-star">*</span>部门名称</span></th>
					<td>{!! Form::text('name', null, ['class'=>'form-control len']) !!}</td>
				</tr>
				<tr>
					<th width="100"><span class="control-label">区域</span></th>
					<td>{!! Form::select('pid', $regions, null, ['class'=>'form-control autosize']) !!}</td>
				</tr>
				<tr>
					<th width="80"><span class="control-label">备注</span></th>
					<td>{!! Form::textarea('remark', null, ['class'=>'form-control len', 'rows'=>3]) !!}</td>
				</tr>
				<tr>
					<td></td>
					<td>{!! Form::submit('提交', ['class'=>'btn btn-primary']) !!}</td>
				</tr>
			</tbody>
		</table>
	{!! Form::close() !!}
@endsection